//从屏幕下方滑入
cc.Class({
    extends: cc.Component,

    properties: {
        bottom: cc.Integer
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {
        this.node.y = - this.node.height-200
        this.node.x = 0
        this.setOriginPos (cc.v2(0,0+this.bottom))
    },
    setOriginPos (pos) {
        this.node.originPos = pos
    },
    slipIn () {
        let slipInAction = cc.moveTo(0.6,this.node.originPos).easing(cc.easeExponentialOut())
        this.node.runAction(slipInAction)
    },
    slipOut () {
        let slipOutAction = cc.moveTo(0.6,cc.v2(0,- this.node.height-200)).easing(cc.easeExponentialOut())
        this.node.runAction(slipOutAction)
    }


    // update (dt) {},
});
